package com.guoguo.mapper;


import com.guoguo.entity.Album;
import com.guoguo.entity.vo.AlbumVO;
import com.guoguo.entity.vo.AlbumsVO;
import com.guoguo.entity.vo.FavoriteVO;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/28.
 */
public interface AlbumMapper {

    List<AlbumsVO> selectAlbumList();

    List<Album> getAlbum();

    List<Album> selectBy(Album albums);

    int insert(Album albums);

    int insertSelective(Album albums);

    int countBy(Album albums);

    AlbumsVO selectByPrimaryKey(String albId);

    int deleteByPrimaryKey(String albId);

    int deleteBy(Album albums);

    int updateBySelective(Album albums);

    int updateBy(Album albums);

    int updateByPrimaryKeySelective(Album albums);

    int updateByPrimaryKey(String albId);

    /**
     * 逻辑删除
     */
    int UDByPrimaryKey(String albId);


    /**
     * 查询火热排行榜数据
     *
     * @return
     */
    List<Map<String, Object>> getFireHotRanking();

    /**
     * 统计喜欢榜数据
     *
     * @return
     */
    List<Map<String, Object>> getLikeRanking();

    /**
     * 付费榜
     *
     * @return
     */
    List<Map<String, Object>> getPayRanking();
}
